FROM golang:1.21.8
WORKDIR $GOPATH/b
COPY . $GOPATH/b
EXPOSE 8081
ENV GOPROXY https://goproxy.cn,direct
RUN go build -o b b.go
ENTRYPOINT ["./b"]